package Animal;
/*
 宠物都有名字，品种，体重的属性，有吃和睡 和自我介绍的方法。。。
 */

public class Pet {
    private String name;
    private String kind;
    private int whight;
    public Pet(){

    }
    public Pet(String name, String kind, int whight) {
        this.name = name;
        this.kind = kind;
        this.whight = whight;
    }

    public String getName() {
        return name;
    }

    public String getKind() {
        return kind;
    }

    public int getWhight() {
        return whight;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public void setWhight(int whight) {
        this.whight = whight;
    }
    public void eat(){
        System.out.println("吃");
    }
    public void drink(){
        System.out.println("喝");
    }
    public void sleep(){
        System.out.println("睡");
    }
    public void into(){
        System.out.println("我的姓名是"+name+",体重是"+whight+"kg，我的品种是"+kind+"，谢谢大家");
    }
}
